﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace DayofWeek
{
    /// <summary>
    /// Interaction logic for WidgetControl.xaml
    /// </summary>
    public partial class WidgetControl : UserControl
    {
        public WidgetControl()
        {
            InitializeComponent();

            this.Loaded += new RoutedEventHandler(WidgetControlLoaded);
        }

        void WidgetControlLoaded(object sender, RoutedEventArgs e)
        {
            Widget.Instance.SetBackground(Brushes.Transparent);
            Day.Text = DateTime.Now.ToString("dddd");
        }
    }
}
